package com.dog.basics.common.exception;


import com.dog.basics.common.constant.CommonConstants;
import lombok.Data;

/**
 * @program: dog-wisdompark
 *
 * @description: 自定义异常
 *
 * @author: Guo
 *
 * @create: 2019-07-11 17:46
 **/
@Data
public class CustomException extends RuntimeException {

	private int code = CommonConstants.FAIL;

	public CustomException(String message){
		super(message);
	}

	public CustomException(String message, int code){
		super(message);
		this.code = code;

	}

}
